<#if pageInfo.list?size &gt; 0 >
  <#list pageInfo.list as data>
		<tr>
      <td>${data.createUser.username }</td>
      <td>${data.title}</td>
      <td class="text-info">${data.currentRate}%</td>
      <td class="text-info">${data.bidRequestAmount}</td>
      <td>${data.returnTypeDisplay}</td>
      <td>
        <div class="">
          ${data.persent} %
        </div>
      </td>
      <td><a class="btn btn-danger btn-sm"
             href="/borrow_info?id=${data.id}">查看</a></td>
    </tr>
  </#list>
<#else>
	<tr>
    <td colspan="7" align="center">
      <p class="text-danger">目前没有符合要求的标</p>
    </td>
  </tr>
</#if>

<script type="text/javascript">
  $(function () {
    $("#page_container").html("");
    let $ul = $('<ul id="pagination" class="pagination"></ul>');
    $("#page_container").append($ul);

    $("#pagination").twbsPagination({
      totalPages:${pageInfo.pages},
      startPage:${pageInfo.pageNum},
      initiateStartPageClick: false,
      onPageClick: function (event, page) {
        $("#currentPage").val(page);
        $("#searchForm").submit();
      }
    });
  });
</script>